package cn.wolfcode.crm.domain;

import cn.wolfcode.crm.util.JSONUtil;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Setter@Getter
public class Systemdictionaryitem extends BaseDomain {

    private Long parentId;

    private String title;

    private Integer sequence;

    public String getJson(){
        HashMap<String, Object> map = new HashMap<>();
        map.put("id",id);
        map.put("parentId",parentId);
        map.put("sequence",sequence);
        map.put("title",title);
        return JSONUtil.toJSONString(map);
    }
}
